spread operator in JavaScript